home *** CD-ROM | disk | FTP | other *** search
/ Champak 29 / Volume 29 - JOGO DISK .iso / Games / funny_baseball.swf / scripts / DefineSprite_301 / frame_6 / DoAction.as
Text File  |  2006-11-13  |  607b  |  24 lines

  1. function Ball_xy()
  2. {
  3.    this.ball._x = this.RX;
  4.    this.ball._y = this.RY;
  5.    this.Check = true;
  6.    this.onEnterFrame = function()
  7.    {
  8.       if(this.Check)
  9.       {
  10.          if(_parent._parent.Place == 1 || _parent._parent.Place == 2)
  11.          {
  12.             this.ball._x -= _parent.Ball_num / 5 / 8;
  13.             this.ball._y -= _parent.Ball_num / 5 / 8;
  14.          }
  15.          else if(_parent._parent.Place != 3)
  16.          {
  17.             this.ball._x += _parent.Ball_num / 5 / 8;
  18.             this.ball._y += _parent.Ball_num / 5 / 8;
  19.          }
  20.       }
  21.    };
  22. }
  23. _parent._parent.Choice = 1;
  24.